/* simple test program that gets data from the tty and writes it back */
#include "uart_test.h"
/*
void uart_test(){
  char c[20];
  int r,i = 0;
  ecrire("Write something, it will be repeated !\n");
  while(i < 5){
    r = lire(c, 20);
    ecrire("\n");
    //c[0] = '\n';
    ecrire(c);
    ecrire("\n");
    i ++;
  }
  quitter(0);
}

*/

void uart_test(){
  kprint_string("Uart test, priority ");
  char buf[4];
  kprint_string(itoa(obtenir_priorite(obtenir_pid()),buf,4));
  kprint_string(" pid ");
  kprint_string(itoa(obtenir_pid(),buf,4));
  kprint_string(" started \n");
  retarder(obtenir_pid(),2000);
  quitter(1);
}
